<template>
    <!-- 分类 -->
  <div class="fl-waike">
    <div class="fl-all-box">
      <div class="fl-box-sy">
        <router-link tag="a" target="_blank" :to="{path:'/search'}">
        <span class="titleOne span-def">视频索引 <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg" class="icon-arrow"><path d="M5.5332 2L11.2975 7.7643C11.4277 7.89447 11.4277 8.10553 11.2975 8.2357L5.5332 14" stroke="#18191C" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path></svg>
        </span>
        </router-link>
        <div class="fl-nr-one">
          <div class="fl-nr-box mar-right-35px">
            <router-link class="a-def" tag="a" target="_blank" :to="{path:'/search',query:{screen:2}}"><span class="span-def-s">最多收藏</span></router-link>
            <router-link class="a-def" tag="a" target="_blank" :to="{path:'/search',query:{screen:1}}"><span class="span-def-s">更新时间</span></router-link>
          </div>
          <div class="fl-nr-box">
            <router-link class="a-def" tag="a" target="_blank" :to="{path:'/search',query:{screen:3}}"><span class="span-def-s">最多追番</span></router-link>
          </div>
        </div>
      </div>
      <div class="fl-box-lx">
        <router-link tag="a" target="_blank" :to="{path:'/search'}">
        <span class="titleOne span-def">视频风格 <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg" class="icon-arrow"><path d="M5.5332 2L11.2975 7.7643C11.4277 7.89447 11.4277 8.10553 11.2975 8.2357L5.5332 14" stroke="#18191C" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path></svg>
        </span>
        </router-link>
        <div class="fl-nr-one">
          <div class="fl-nr-boxs">
            <router-link class="a-def" tag="a" target="_blank" :to="{path:'/search',query:{screenLx:1}}"><span class="span-def-xs">原创</span></router-link>
            <router-link class="a-def" tag="a" target="_blank" :to="{path:'/search',query:{screenLx:2}}"><span class="span-def-xs">漫改</span></router-link>
<!--          </div>-->
<!--          <div class="fl-nr-box mar-right-35px">-->
            <router-link class="a-def" tag="a" target="_blank" :to="{path:'/search',query:{screenLx:13}}"><span class="span-def-xs">萌系</span></router-link>
            <router-link class="a-def" tag="a" target="_blank" :to="{path:'/search',query:{screenLx:12}}"><span class="span-def-xs">科幻</span></router-link>
<!--          </div>-->
<!--          <div class="fl-nr-box mar-right-35px">-->
            <router-link class="a-def" tag="a" target="_blank" :to="{path:'/search',query:{screenLx:19}}"><span class="span-def-xs">少女</span></router-link>
            <router-link class="a-def" tag="a" target="_blank" :to="{path:'/search',query:{screenLx:7}}"><span class="span-def-xs">穿越</span></router-link>
<!--          </div>-->
<!--          <div class="fl-nr-box">-->
            <router-link class="a-def" tag="a" target="_blank" :to="{path:'/search',query:{screenLx:11}}"><span class="span-def-xs">日常</span></router-link>
            <router-link class="a-def" tag="a" target="_blank" :to="{path:'/search',query:{screenLx:20}}"><span class="span-def-xs">魔法</span></router-link>
          </div>
        </div>
      </div>
      <div class="fl-box-sj">
        <router-link tag="a" target="_blank" :to="{path:'/search'}">
        <span class="titleOne span-def">上映时间 <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg" class="icon-arrow"><path d="M5.5332 2L11.2975 7.7643C11.4277 7.89447 11.4277 8.10553 11.2975 8.2357L5.5332 14" stroke="#18191C" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path></svg>
        </span>
        </router-link>
        <div class="fl-nr-one">
          <div class="fl-nr-boxs">
            <span class="span-def-s yearSpan"  v-for="n in 8" :key="n"><router-link class="a-def" tag="a" target="_blank" :to="{path:'/search',query:{screenTime:year-n+1,num:n}}">{{year-n+1}}</router-link></span>
          </div>
        </div>
      </div>
      <div class="fl-box-ss">
        <router-link tag="a" target="_blank" :to="{path:'/search'}">
        <span class="titleOne span-def">上映地区 <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg" class="icon-arrow"><path d="M5.5332 2L11.2975 7.7643C11.4277 7.89447 11.4277 8.10553 11.2975 8.2357L5.5332 14" stroke="#18191C" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path></svg>
        </span>
        </router-link>
        <div class="fl-nr-one">
          <div class="fl-nr-box mar-right-35px">
            <router-link class="a-def" tag="a" target="_blank" :to="{path:'/search',query:{screenAd:1}}"><span class="span-def-s">中国</span></router-link>
              <router-link class="a-def" tag="a" target="_blank" :to="{path:'/search',query:{screenAd:2}}"><span class="span-def-s">日本</span></router-link>
          </div>
          <div class="fl-nr-box">
            <router-link class="a-def" tag="a" target="_blank" :to="{path:'/search',query:{screenAd:3}}"><span class="span-def-s">欧美</span></router-link>
              <router-link class="a-def" tag="a" target="_blank" :to="{path:'/search',query:{screenAd:4}}"><span class="span-def-s">其他</span></router-link>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>

<script setup>
import {useRouter} from "vue-router";

const router = useRouter()
const year = new Date().getFullYear()
</script>

<style lang="less" scoped>
a{
  text-decoration: none;
}
.span-def-xs{
  margin-right: 35px;
  height: 25px;
}
.a-def{
  text-decoration: none;
  color: gray;
}
.titleOne{
  font-size: 19px;
  color: black;
}
.yearSpan{
  margin-right: 35px;
  height: 25px;
  line-height: 25px;
}
.icon-arrow{
  position: relative;
  top: 2px;
}
.span-def{
  font-family: 黑体;
  font-weight: bold;
}
.mar-right-35px{
  margin-right: 35px;
}
.fl-all-box{
  display: flex;
  flex-direction: row;

}
.fl-nr-one{
  //width: 80%;
  overflow: hidden;
  display: flex;
  flex-direction: row;
  margin-top: 15px;
}
.fl-nr-box{
  height: 50px;
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  justify-content: space-between;
}
.fl-nr-boxs{
  max-width: 270px;
  height: 50px;
  display: flex;
  overflow: hidden;
  flex-wrap: wrap;
  //flex-direction: column;
  //justify-content: space-between;
}
.fl-box-sy{
  flex: 1;
  position: relative;
  margin-right: 20px;
  padding: 16px 20px;
  border-radius: 8px;
  overflow: hidden;
  box-sizing: border-box;
  background: linear-gradient(83.84deg, rgba(255, 139, 244, 0.12) 0%, rgba(255, 139, 244, 0.07) 100%), url(~@/assets/img/255a693332138326a26dbd82f7cc1afb9fa12ea2.png) right center / contain no-repeat;
}
.fl-box-lx{
  flex: 1;
  position: relative;
  margin-right: 20px;
  padding: 16px 20px;
  border-radius: 8px;
  overflow: hidden;
  background: linear-gradient(83.84deg, rgba(108, 226, 169, 0.12) 0%, rgba(108, 226, 169, 0.07) 100%), url(~@/assets/img/4a04aff34d0ae6d31b7af4aef7b64d023d8fc13c.png) right center / contain no-repeat;
}
.fl-box-sj{
  flex: 1;
  position: relative;
  margin-right: 20px;
  padding: 16px 20px;
  border-radius: 8px;
  overflow: hidden;
  background: linear-gradient(83.84deg, rgba(114, 184, 255, 0.12) 0%, rgba(114, 184, 255, 0.07) 100%), url(~@/assets/img/76c8973dc182b1afa567dc2aeadfece7ec008256.png) right center / contain no-repeat;
}
.fl-box-ss{
  flex: 1;
  position: relative;
  padding: 16px 20px;
  border-radius: 8px;
  overflow: hidden;
  background: linear-gradient(83.84deg, rgba(255, 122, 122, 0.12) 0%, rgba(255, 122, 122, 0.07) 100%), url(~@/assets/img/59f113c35c6e050ab5e60f585a8621a80a7644e5.png) right center / contain no-repeat;
}
@media screen and (min-width: 2061px) {
  .fl-all-box {
    width: 1784px;
    margin: 40px  auto;
  }
}
@media screen and (min-width: 1559.8px) and (max-width: 2060.8px) {
  .fl-all-box {
    margin: 50px 140px 0 140px;
  }
}
@media screen and (min-width: 1400px) and (max-width: 1559.8px) {
  .fl-all-box {
    margin: 50px 60px 0 60px;
  }
}
@media screen and (min-width: 1301px) and (max-width: 1399.8px) {
  .fl-all-box {
    width: 1180px;
    margin: 10px auto;
  }
}
@media screen and (min-width: 1140px) and (max-width: 1300.8px) {
  .fl-all-box{
    margin: 0 60px;
  }
}
@media screen and (max-width: 1139.8px) {
  .fl-all-box {
    width: 1020px;
    margin: 0 auto;
  }
}
</style>
